from django.contrib import admin

from .models import BookInfo, HeroInfo

class BookInfoAdmin(admin.ModelAdmin):
    """模型站点管理类"""
    actions_on_bottom = True
    list_display = ['id', 'btitle', 'bpub_date']
    list_per_page = 2


# 将模型注册/添加到admin
admin.site.register(BookInfo, BookInfoAdmin)
admin.site.register(HeroInfo)



admin.site.site_header = '传智书城'
admin.site.site_title = '传智书城MIS'
admin.site.index_title = '欢迎使用传智书城MIS'